<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of GeneralController
 *
 * @author Colin
 */
class GeneralController extends CI_Controller{
    //put your code here
    
    protected function loadLayoutView($view, $vars = array(), $return = FALSE, $layout = "layout"){
        $this->load->library('session');
        $this->load->helper('url');
        $vars["SUBVIEW"]=$view;
        $vars["USER_MAIL"]=$this->session->userdata("mail");
        $vars["LOGGED"]=$this->session->userdata("logged_in");
        $vars["BASE_URL"]=base_url();   
        
        $this->load->view($layout, $vars, $return);
    }
}

?>
